import { defineStore } from 'pinia' 

export const useGeneralStore = defineStore('general', {
  state: () => ({
    material_id: null,
    page_number: 1,
  }),
  actions: {
    setMaterialId(id) {
      this.material_id = id
    },
    getMaterialId() {
      return this.material_id
    },
    setPageNumber(number) {
      this.page_number = number
    },
    getPageNumber() {
      return this.page_number
    },
  },
})